package com.example.springsecurity.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("t_user")
public class User implements Serializable {
    @TableId
    private Integer id;
    private String name;
    private String password;
    private String avatar;
    @TableField(exist = false)
    private String role;
    private DateTime createTime;
    @TableField(exist = false)
    private String token;
    @TableField(exist = false)
    private List<String> permissions;
}
